home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 November: Tool Chest / Dev.CD Nov 98 TC.toast / Sample Code / Snippets / Toolbox / Calc ControlRgn / ReadMe.Doc < prev    next >
Encoding:
Text File  |  1996-05-07  |  1.3 KB  |  33 lines  |  [TEXT/CWIE]

  1. Calc ControlRgn
  2. Last updated 5/07/96
  3.  
  4. This snippet shows how to call a CDEF to get the control's Region.
  5. You can make other calls to the CDEF using the same method.
  6.  
  7. This snippet works for both 68K and PowerPC. I included
  8. the both versions so you can see it works for both platforms. 
  9.  
  10. This is the first snippet to use my SimpleApp framework. SimpleApp was
  11. designed to hide the menial tasks of getting a Mac application
  12. running. Since SimpleApp handles the event loop and the gory details
  13. of a running application, this lets you see all the code that the
  14. snippet is trying to show without having to dig through thousands of
  15. lines of code. For example, this snippet is 255 lines of code. (126
  16. lines without comments) Hopefully this will let me get a lot more
  17. sample code out since I can now concentrate on the sample code and
  18. not waste my time reinventing the wheel.  
  19.  
  20. One of the benefits of SimpleApp is that it will shield you from 
  21. the gory details of Copland. Since SimpleApp is based on the 
  22. "Don't call us, we'll call you" model, it migrates well into Copland.
  23. I will be releasing the SimpleApp project when I get the source code
  24. cleaned up for general distribution. 
  25.  
  26.  
  27. Enjoy,
  28.  
  29. Matthew Xavier Mora
  30. Developer Technical Support
  31. Apple Computer, Inc.                mxmora@apple.com
  32.  
  33.